﻿using Microsoft.EntityFrameworkCore.Migrations;
using System;
using System.Collections.Generic;

namespace ABCNet.Migrations
{
    public partial class update_Order : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "ProductId",
                table: "N_Order");

            migrationBuilder.RenameColumn(
                name: "ConsigneeAddredd",
                table: "N_Order",
                newName: "ConsigneeAddress");

            migrationBuilder.AddColumn<long>(
                name: "UserId",
                table: "N_Order",
                nullable: false,
                defaultValue: 0L);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "UserId",
                table: "N_Order");

            migrationBuilder.RenameColumn(
                name: "ConsigneeAddress",
                table: "N_Order",
                newName: "ConsigneeAddredd");

            migrationBuilder.AddColumn<int>(
                name: "ProductId",
                table: "N_Order",
                nullable: false,
                defaultValue: 0);
        }
    }
}
